import config from "@/config"
import http from "@/utils/request"

export default {
	token: {
		url: `${config.API_URL}/login`,
		name: "登录获取TOKEN",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	wxconfig: {
		url: `${config.API_URL}/wx/config`,
		get: async function(data,  config={}){
			return await http.get(this.url, data,  config);
		}
	},
	resetpwd: {
		url: `${config.API_URL}/manage/resetPassword`,
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	}
}
